<extend name="./Application/Admin/View/common/base.html" />
<block name="crumb">
    <span class="c-gray en">&gt;</span> 充值中心
    <span class="c-gray en">&gt;</span> 充值审核
</block>
<block name="content">
    <div class="tabBar cl m-b-10">
        <span class="current"><a href="{:U('Account/index')}">充值审核</a></span>
    </div>

    <form id="audit_agent" method="post" action="{:U('Account/account_audit')}" class="form form-horizontal col-xs-6">
        <p class="form-title">审核</p>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">意向：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <select class="input-text" name="agree">
                    <option value="1">通过</option>
                    <option value="2">不通过</option>
                </select>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">备注：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <textarea name="remark" class="input-text" style="min-height:60px;"></textarea>
            </div>
        </div>
        <div class="row cl" style="text-align: center;">
            <label class="form-label col-xs-12 col-sm-12"></label>
            <input type="hidden" name="account_id" value="{$account['account_id']}"/>
            <button id="audit" class="btn btn-secondary" type="submit">审核</button>
        </div>
    </form>

    <form class="form form-horizontal col-xs-6">
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">代理姓名：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <input type="text" class="input-text" value="{$account['agent_name']}" readonly/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">充值金额：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <input type="text" class="input-text" value="{$account['amount']}" readonly/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">充值时间：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <input type="text" class="input-text" value="{$account['record_time']|date='Y-m-d',###}" readonly/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">充值IP：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <input type="text" class="input-text" value="{$account['record_ip']}" readonly/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">备注：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <textarea class="input-text" readonly style="min-height:60px;">{$account['record_remark']}</textarea>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">附件/截图：</label>
            <div class="formControls col-xs-7 col-sm-7">
                <if condition="$account['enclosure'] neq ''">
                    <img src="{$account['enclosure']}" style="max-width:320px;"/>
                    <else/><input type="text" class="input-text" value="未上传" readonly/>
                </if>
            </div>
        </div>
    </form>
</block>